
export const appRouter = [

    {
        path: '/category',
        component: () => import('@/views/category/index.vue'),
        children: [
            {
                path: '',
                name: 'category',
                children: [
                    {
                        path: '',
                        name: 'category',
                        component: () => import('@/views/category/CategoryView.vue'),
                        meta: {
                            title: "分类",
                            keepAlive: true, // 需要缓存
                        },
                    },
                    {
                        path: 'branddetails',
                        name: 'branddetails',
                        component: () => import('@/views/category/BrandDetailsView.vue'),
                        meta: {
                            title: "品牌",
                            keepAlive: true, // 需要缓存
                            hidetabbar: true, //隐藏
                        },
                    },
                    {
                        path: 'goodsdetails',
                        name: 'goodsdetails',
                        component: () => import('@/views/category/GoodsDetailsView.vue'),
                        meta: {
                            title: "商品详情",
                            keepAlive: true, // 需要缓存
                            hidetabbar: true, //隐藏
                        },
                    }
                ]
            }
        ]
    },
]

export const category = [...appRouter]
